package org.example.aienglishapp.entity.word;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class ErrorWord {

    private Long userId;          // 用户ID
    private String word;          // 单词
    private String chineseMeaning; // 中文意思

    // 构造方法
    public ErrorWord() {}

    public ErrorWord(Long userId, String word, String chineseMeaning) {
        this.userId = userId;
        this.word = word;
        this.chineseMeaning = chineseMeaning;
    }

    // Getter 和 Setter 方法

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getChineseMeaning() {
        return chineseMeaning;
    }

    public void setChineseMeaning(String chineseMeaning) {
        this.chineseMeaning = chineseMeaning;
    }

    // 重写toString方法
    @Override
    public String toString() {
        return "ErrorWord{" +
                "userId=" + userId +
                ", word='" + word + '\'' +
                ", chineseMeaning='" + chineseMeaning + '\'' +
                '}';
    }
}